package com.spring.bean.blog;

import java.sql.Timestamp;
import com.spring.annotation.entity.*;
import com.spring.bean.Entity;

@Table(name="blog")
public class Blog extends Entity {

	private Integer id;  // 
	private Integer pb_id;  // 
	private Integer sort_id;  // 
	private String title;  // 
	private String content;  // 
	private String keyword;  // 
	private Integer order_by;  // 
	private Timestamp post_time;  // 
	private Integer readed_num;  // 
	private Integer commed_num;  // 
	private Integer recommed_num;  // 
	private Integer favorited_num;  // 
	private Integer commed_able;  // 
	private Integer is_able;  // 
	private String close_reson;  // 

	public Integer getId(){
		return id;
	}
	public void setId(Integer id){
		this.id = id;
	}

	public Integer getPb_id(){
		return pb_id;
	}
	public void setPb_id(Integer pb_id){
		this.pb_id = pb_id;
	}

	public Integer getSort_id(){
		return sort_id;
	}
	public void setSort_id(Integer sort_id){
		this.sort_id = sort_id;
	}

	public String getTitle(){
		return title;
	}
	public void setTitle(String title){
		this.title = title;
	}

	public String getContent(){
		return content;
	}
	public void setContent(String content){
		this.content = content;
	}

	public String getKeyword(){
		return keyword;
	}
	public void setKeyword(String keyword){
		this.keyword = keyword;
	}

	public Integer getOrder_by(){
		return order_by;
	}
	public void setOrder_by(Integer order_by){
		this.order_by = order_by;
	}

	public Timestamp getPost_time(){
		return post_time;
	}
	public void setPost_time(Timestamp post_time){
		this.post_time = post_time;
	}

	public Integer getReaded_num(){
		return readed_num;
	}
	public void setReaded_num(Integer readed_num){
		this.readed_num = readed_num;
	}

	public Integer getCommed_num(){
		return commed_num;
	}
	public void setCommed_num(Integer commed_num){
		this.commed_num = commed_num;
	}

	public Integer getRecommed_num(){
		return recommed_num;
	}
	public void setRecommed_num(Integer recommed_num){
		this.recommed_num = recommed_num;
	}

	public Integer getFavorited_num(){
		return favorited_num;
	}
	public void setFavorited_num(Integer favorited_num){
		this.favorited_num = favorited_num;
	}

	public Integer getCommed_able(){
		return commed_able;
	}
	public void setCommed_able(Integer commed_able){
		this.commed_able = commed_able;
	}

	public Integer getIs_able(){
		return is_able;
	}
	public void setIs_able(Integer is_able){
		this.is_able = is_able;
	}

	public String getClose_reson(){
		return close_reson;
	}
	public void setClose_reson(String close_reson){
		this.close_reson = close_reson;
	}


	@Override
	public String toString(){
		return "Blog ["+
			"id="+id+", pb_id="+pb_id+", "+
			"sort_id="+sort_id+", title="+title+", "+
			"content="+content+", keyword="+keyword+", "+
			"order_by="+order_by+", post_time="+post_time+", "+
			"readed_num="+readed_num+", commed_num="+commed_num+", "+
			"recommed_num="+recommed_num+", favorited_num="+favorited_num+", "+
			"commed_able="+commed_able+", is_able="+is_able+", "+
			"close_reson="+close_reson+", " + 
			"toString()="+super.toString() +"]";
	}
}